package lab1;

public class House {
	Door door;
	Interior interior;
	Roof roof;
	Wall wall;
	Windows windows;
	
	void setDoor(Door door){this.door = door;}
	void setInterior(Interior interior){this.interior = interior;}
	void setRoof(Roof roof){this.roof = roof;}
	void setWall(Wall wall){this.wall = wall;}
	void setWindows(Windows windows){this.windows = windows;}
	
	void build() {
		System.out.println("start to build...");
		door.build();
		interior.build();
		roof.build();
		wall.build();
		windows.build();
		System.out.println("House is built...");
	}
}
